package 动物声音模拟器;

class Simulator {
    public void playSound(Animal animal) {
        System.out.print(animal.getAnimalName() + " 叫声: ");
        animal.cry();
    }
}

